<template>
  <div class="tvshow-container">
    <!-- 头部banner -->
    <div class="tvshow-banner">
      <div class="banner-overlay"></div>
      <div class="banner-content">
        <h1 class="banner-title">电视剧频道</h1>
        <p class="banner-subtitle">追剧不停，精彩不断</p>
      </div>
    </div>

    <!-- 内容分类标签 -->
    <div class="tvshow-categories">
      <button 
        v-for="category in categories" 
        :key="category.id"
        class="category-tab"
        :class="{ active: activeCategory === category.id }"
        @click="activeCategory = category.id"
      >
        {{ category.name }}
      </button>
    </div>

    <!-- 热门剧集轮播 -->
    <div class="hot-tvshows-section">
      <div class="section-header">
        <h2>热门剧集</h2>
        <a href="#" class="more-link">更多热门 <i class="fa fa-angle-right"></i></a>
      </div>
      <div class="carousel-container">
        <div class="carousel-track" :style="{ transform: `translateX(-${carouselIndex * 100}%)` }">
          <div v-for="show in hotTVShows" :key="show.id" class="carousel-item">
            <div class="tvshow-card-large">
              <img :src="show.image" :alt="show.title" class="tvshow-poster-large">
              <div class="tvshow-info-large">
                <div class="tvshow-rating">
                  <span class="rating-number">{{ show.rating }}</span>
                  <span class="rating-text">评分</span>
                </div>
                <h3 class="tvshow-title-large">{{ show.title }}</h3>
                <p class="tvshow-description">{{ show.description }}</p>
                <div class="tvshow-details">
                  <span class="detail-item">{{ show.year }}</span>
                  <span class="detail-item">{{ show.episodes }}集全</span>
                  <span class="detail-item">{{ show.country }}</span>
                  <span class="detail-item">{{ show.status }}</span>
                </div>
                <div class="tvshow-genres">
                  <span 
                    v-for="genre in show.genres" 
                    :key="genre"
                    class="genre-tag"
                  >
                    {{ genre }}
                  </span>
                </div>
                <button class="watch-now-btn">
                  <i class="fa fa-play-circle"></i> 立即观看
                </button>
              </div>
            </div>
          </div>
        </div>
        <button class="carousel-prev" @click="prevSlide"><i class="fa fa-chevron-left"></i></button>
        <button class="carousel-next" @click="nextSlide"><i class="fa fa-chevron-right"></i></button>
        <div class="carousel-dots">
          <span 
            v-for="(show, index) in hotTVShows" 
            :key="index"
            class="dot"
            :class="{ active: index === carouselIndex }"
            @click="carouselIndex = index"
          ></span>
        </div>
      </div>
    </div>

    <!-- 新剧推荐 -->
    <div class="new-tvshows-section">
      <div class="section-header">
        <h2>新剧推荐</h2>
      </div>
      <div class="tvshows-grid">
        <div 
          v-for="show in newTVShows" 
          :key="show.id"
          class="tvshow-card"
        >
          <div class="tvshow-poster-container">
            <img :src="show.image" :alt="show.title" class="tvshow-poster">
            <div class="poster-overlay">
              <button class="quick-watch-btn">
                <i class="fa fa-play"></i>
              </button>
            </div>
            <div class="rating-badge">{{ show.rating }}</div>
            <div class="update-badge">更新至{{ show.updatedEpisodes }}集</div>
          </div>
          <div class="tvshow-info">
            <h3 class="tvshow-title">{{ show.title }}</h3>
            <p class="tvshow-subtitle">{{ show.subtitle }}</p>
            <div class="tvshow-stats">
              <span class="stat-item">{{ show.views }}万次播放</span>
              <span class="stat-item">{{ show.followers }}万人追看</span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 经典剧集 -->
    <div class="classic-tvshows-section">
      <div class="section-header">
        <h2>经典剧集</h2>
      </div>
      <div class="tvshows-grid">
        <div 
          v-for="show in classicTVShows" 
          :key="show.id"
          class="tvshow-card"
        >
          <div class="tvshow-poster-container">
            <img :src="show.image" :alt="show.title" class="tvshow-poster">
            <div class="poster-overlay">
              <button class="quick-watch-btn">
                <i class="fa fa-play"></i>
              </button>
            </div>
            <div class="rating-badge">{{ show.rating }}</div>
            <div class="classic-badge">经典</div>
          </div>
          <div class="tvshow-info">
            <h3 class="tvshow-title">{{ show.title }}</h3>
            <p class="tvshow-subtitle">{{ show.subtitle }}</p>
            <div class="tvshow-stats">
              <span class="stat-item">{{ show.views }}万次播放</span>
              <span class="stat-item">{{ show.followers }}万人追看</span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 剧集排行榜 -->
    <div class="ranking-section">
      <div class="section-header">
        <h2>剧集排行榜</h2>
      </div>
      <div class="ranking-list">
        <div 
          v-for="(show, index) in topTVShows" 
          :key="show.id"
          class="ranking-item"
          :class="{ 'top-three': index < 3 }"
        >
          <div class="rank-number" :class="{ 'highlight': index < 3 }">
            {{ index + 1 }}
          </div>
          <img :src="show.image" :alt="show.title" class="rank-poster">
          <div class="rank-info">
            <h3 class="rank-title">{{ show.title }}</h3>
            <p class="rank-subtitle">{{ show.subtitle }}</p>
            <div class="rank-stats">
              <span class="rank-rating">{{ show.rating }}分</span>
              <span class="rank-views">{{ show.views }}万次播放</span>
            </div>
          </div>
          <button class="rank-watch-btn">播放</button>
        </div>
      </div>
    </div>

    <!-- 精选专题 -->
    <div class="special-topics-section">
      <div class="section-header">
        <h2>精选专题</h2>
      </div>
      <div class="topics-grid">
        <div 
          v-for="topic in specialTopics" 
          :key="topic.id"
          class="topic-card"
        >
          <div class="topic-image-container">
            <img :src="topic.image" :alt="topic.title" class="topic-image">
            <div class="topic-overlay">
              <h3 class="topic-title">{{ topic.title }}</h3>
              <p class="topic-count">{{ topic.count }}部剧集</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { getLocalImage } from '../utils/imageMap.js'
import logoImage from '@/assets/logo.png'

export default {
  name: 'TVShowView',
  data() {
    return {
      // 分类数据
      categories: [
        { id: 'all', name: '全部' },
        { id: 'drama', name: '剧情' },
        { id: 'comedy', name: '喜剧' },
        { id: 'romance', name: '爱情' },
        { id: 'family', name: '家庭' },
        { id: 'fantasy', name: '奇幻' },
        { id: 'history', name: '历史' },
        { id: 'suspense', name: '悬疑' },
        { id: 'action', name: '动作' },
        { id: 'youth', name: '青春' },
      ],
      activeCategory: 'all',
      
      // 轮播图索引
      carouselIndex: 0,
      
      // 热门剧集（轮播）
      hotTVShows: [
        {
          id: 1,
          title: '繁花',
          image: logoImage,
          rating: 8.8,
          year: 2024,
          episodes: 30,
          country: '中国大陆',
          status: '已完结',
          genres: ['剧情', '都市', '商战'],
          description: '《繁花》改编自金宇澄的同名小说，讲述了20世纪90年代上海弄堂里的市井生活和商业传奇。',
        },
        {
          id: 2,
          title: '三体',
          image: logoImage,
          rating: 8.7,
          year: 2023,
          episodes: 30,
          country: '中国大陆',
          status: '已完结',
          genres: ['科幻', '悬疑'],
          description: '改编自刘慈欣的科幻小说，讲述人类文明与三体文明的第一次接触，以及两个文明之间的博弈。',
        },
        {
          id: 3,
          title: '狂飙',
          image: logoImage,
          rating: 9.0,
          year: 2023,
          episodes: 39,
          country: '中国大陆',
          status: '已完结',
          genres: ['犯罪', '悬疑', '动作'],
          description: '讲述了一线刑警安欣与高启强跨越20年的正邪较量，展现了扫黑除恶专项斗争中的惊心动魄故事。',
        },
      ],
      
      // 新剧推荐
      newTVShows: [
        {
          id: 101,
          title: '长月烬明',
          subtitle: '罗云熙、白鹿领衔主演',
          image: logoImage,
          rating: 8.5,
          updatedEpisodes: 36,
          views: 12800,
          followers: 856,
        },
        {
          id: 102,
          title: '去有风的地方',
          subtitle: '刘亦菲、李现主演',
          image: logoImage,
          rating: 8.6,
          updatedEpisodes: 40,
          views: 15600,
          followers: 982,
        },
        {
          id: 103,
          title: '三体2：黑暗森林',
          subtitle: '科幻巨制续集',
          image: logoImage,
          rating: 8.9,
          updatedEpisodes: 24,
          views: 18200,
          followers: 1240,
        },
        {
          id: 104,
          title: '欢乐颂5',
          subtitle: '原班人马回归',
          image: logoImage,
          rating: 8.2,
          updatedEpisodes: 18,
          views: 9800,
          followers: 765,
        },
      ],
      
      // 经典剧集
      classicTVShows: [
        {
          id: 201,
          title: '红楼梦',
          subtitle: '87版经典',
          image: logoImage,
          rating: 9.7,
          views: 28900,
          followers: 1650,
        },
        {
          id: 202,
          title: '武林外传',
          subtitle: '国产情景喜剧巅峰',
          image: logoImage,
          rating: 9.6,
          views: 32500,
          followers: 1980,
        },
        {
          id: 203,
          title: '西游记',
          subtitle: '86版经典',
          image: logoImage,
          rating: 9.5,
          views: 45200,
          followers: 2360,
        },
        {
          id: 204,
          title: '琅琊榜',
          subtitle: '胡歌经典作品',
          image: logoImage,
          rating: 9.4,
          views: 27800,
          followers: 1560,
        },
      ],
      
      // 剧集排行榜
      topTVShows: [
        {
          id: 301,
          title: '狂飙',
          subtitle: '张译、张颂文主演',
          image: logoImage,
          rating: 9.0,
          views: 35600,
        },
        {
          id: 302,
          title: '三体',
          subtitle: '科幻巨制',
          image: logoImage,
          rating: 8.7,
          views: 28900,
        },
        {
          id: 303,
          title: '繁花',
          subtitle: '胡歌、唐嫣主演',
          image: logoImage,
          rating: 8.8,
          views: 27600,
        },
        {
          id: 304,
          title: '长月烬明',
          subtitle: '罗云熙、白鹿主演',
          image: logoImage,
          rating: 8.5,
          views: 25800,
        },
        {
          id: 305,
          title: '去有风的地方',
          subtitle: '刘亦菲、李现主演',
          image: logoImage,
          rating: 8.6,
          views: 24200,
        },
      ],
      
      // 精选专题
      specialTopics: [
        {
          id: 401,
          title: '国产科幻精品',
          image: logoImage,
          count: 15,
        },
        {
          id: 402,
          title: '年代剧怀旧',
          image: logoImage,
          count: 20,
        },
        {
          id: 403,
          title: '经典古装大剧',
          image: logoImage,
          count: 18,
        },
        {
          id: 404,
          title: '悬疑探案系列',
          image: logoImage,
          count: 12,
        },
      ],
    }
  },
  mounted() {
    // 自动轮播
    this.carouselInterval = setInterval(() => {
      this.nextSlide()
    }, 5000)
  },
  beforeUnmount() {
    // 清除轮播定时器
    if (this.carouselInterval) {
      clearInterval(this.carouselInterval)
    }
  },
  methods: {
    // 轮播图控制
    prevSlide() {
      this.carouselIndex = (this.carouselIndex - 1 + this.hotTVShows.length) % this.hotTVShows.length
    },
    nextSlide() {
      this.carouselIndex = (this.carouselIndex + 1) % this.hotTVShows.length
    },
  },
}
</script>

<style scoped>
/* 电视剧页面容器 */
.tvshow-container {
  min-height: 100vh;
  background-color: #f8f9fa;
  padding-bottom: 50px;
}

/* 头部banner */
.tvshow-banner {
    position: relative;
    height: 450px;
    background-image: url('/src/assets/喜剧电影.jpeg');
    background-size: cover;
    background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.banner-content {
  position: relative;
  text-align: center;
  color: white;
  z-index: 1;
  padding: 0 20px;
}

.banner-title {
  font-size: 56px;
  font-weight: bold;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.banner-subtitle {
  font-size: 24px;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 分类标签 */
.tvshow-categories {
  background-color: white;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tvshow-categories::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 8px 16px;
  border: none;
  background: none;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.category-tab:hover {
  color: #4a90e2;
}

.category-tab.active {
  color: white;
  background-color: #4a90e2;
}

/* 通用区域样式 */
.hot-tvshows-section,
.new-tvshows-section,
.classic-tvshows-section,
.ranking-section,
.special-topics-section {
  margin: 30px 20px;
  background-color: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.more-link {
  color: #4a90e2;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.more-link:hover {
  text-decoration: underline;
}

/* 轮播图样式 */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  flex: 0 0 100%;
}

.tvshow-card-large {
  display: flex;
  gap: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.tvshow-poster-large {
  width: 300px;
  height: 450px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tvshow-info-large {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tvshow-rating {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
}

.rating-number {
  font-size: 48px;
  font-weight: bold;
  color: #4a90e2;
}

.rating-text {
  font-size: 16px;
  color: #666;
}

.tvshow-title-large {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #333;
}

.tvshow-description {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

.tvshow-details {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.detail-item {
  font-size: 14px;
  color: #999;
  padding: 4px 12px;
  background-color: #e9ecef;
  border-radius: 12px;
}

.tvshow-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.genre-tag {
  padding: 6px 16px;
  background-color: #4a90e2;
  color: white;
  border-radius: 16px;
  font-size: 14px;
}

.watch-now-btn {
  padding: 12px 32px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.watch-now-btn:hover {
  background-color: #357abd;
  transform: translateY(-2px);
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: white;
  width: 32px;
  border-radius: 6px;
}

/* 电视剧网格 */
.tvshows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.tvshow-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.tvshow-card:hover {
  transform: translateY(-4px);
}

.tvshow-poster-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 12px;
}

.tvshow-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tvshow-poster-container:hover .tvshow-poster {
  transform: scale(1.05);
}

.poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tvshow-poster-container:hover .poster-overlay {
  opacity: 1;
}

.quick-watch-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 24px;
  color: #4a90e2;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-watch-btn:hover {
  background-color: white;
  transform: scale(1.1);
}

.rating-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background-color: #4a90e2;
  color: white;
  border-radius: 12px;
  font-size: 14px;
  font-weight: bold;
}

.update-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  background-color: #ff6b6b;
  color: white;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.classic-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  background-color: #FF9800;
  color: white;
  border-radius: 12px;
  font-size: 14px;
  font-weight: bold;
}

.tvshow-info {
  padding: 0 4px;
}

.tvshow-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
  color: #333;
  line-height: 1.3;
}

.tvshow-subtitle {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
  line-height: 1.3;
}

.tvshow-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #ccc;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 排行榜样式 */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.ranking-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ranking-item.top-three {
  background-color: #e3f2fd;
}

.rank-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.rank-number.highlight:nth-child(1) {
  background-color: #FFD700;
  color: white;
}

.rank-number.highlight:nth-child(2) {
  background-color: #C0C0C0;
  color: white;
}

.rank-number.highlight:nth-child(3) {
  background-color: #CD7F32;
  color: white;
}

.rank-poster {
  width: 80px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
}

.rank-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 4px;
  color: #333;
}

.rank-subtitle {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
}

.rank-stats {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.rank-rating {
  color: #4a90e2;
  font-weight: bold;
}

.rank-views {
  color: #666;
}

.rank-watch-btn {
  padding: 8px 24px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rank-watch-btn:hover {
  background-color: #357abd;
}

/* 专题样式 */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.topic-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.topic-image-container {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.topic-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.topic-card:hover .topic-image {
  transform: scale(1.05);
}

.topic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.topic-title {
  font-size: 20px;
  font-weight: bold;
  color: white;
  margin-bottom: 4px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.topic-count {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .banner-title {
    font-size: 40px;
  }
  
  .banner-subtitle {
    font-size: 20px;
  }
  
  .tvshow-card-large {
    flex-direction: column;
    align-items: center;
  }
  
  .tvshow-poster-large {
    width: 240px;
    height: 360px;
  }
  
  .tvshow-info-large {
    width: 100%;
  }
  
  .tvshow-title-large {
    font-size: 28px;
  }
  
  .ranking-item {
    flex-direction: column;
    text-align: center;
  }
  
  .rank-info {
    width: 100%;
  }
  
  .tvshows-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 480px) {
  .banner-title {
    font-size: 32px;
  }
  
  .banner-subtitle {
    font-size: 16px;
  }
  
  .tvshow-categories {
    padding: 12px;
    gap: 8px;
  }
  
  .category-tab {
    padding: 6px 12px;
    font-size: 14px;
  }
  
  .tvshows-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
  }
  
  .topics-grid {
    grid-template-columns: 1fr;
  }
}
</style>